package com.activiti6.demo;

import org.activiti.rest.common.application.ContentTypeResolver;
import org.activiti.rest.common.application.DefaultContentTypeResolver;
import org.activiti.rest.service.api.RestResponseFactory;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
//@ComponentScan("org.activiti.rest")
public class Activiti6DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(Activiti6DemoApplication.class, args);
    }

    @RequestMapping("/hello")
    String home() {
        return "Hello AI!";
    }

//    @Bean
//    public RestResponseFactory restResponseFactory() {
//        return new RestResponseFactory();
//    }

//    @Bean
//    public ContentTypeResolver contentTypeResolver() {
//        return new DefaultContentTypeResolver();
//    }

}
